import request from "@/common/request";
import {IResponse} from "@/common/common";

export const checkUserNameApi = async (userName: string) => {

}

export function apiLogin(params: any): Promise<IResponse<any>> {
  return request({
    url: `/auth/login`,
    ignoreAuth: true,
    method: "POST",
    params,
  });
}

export function apiLogout() {
  return request({
    url: "/auth/login/logout",
    ignoreAuth: true,
    method: "POST",
  });
}
